package com.gewu.pm.bean;

/**
 * 配送商品数据Bean
 */
public final class DeliveryGoodsBean {
    
    private String goodsName;      // 商品名称
    private String goodsCode;      // 商品编码
    private String spec;           // 规格
    private double unitPrice;      // 单价（盒）
    private int deliveryQuantity;  // 发货数量
    private double deliveryAmount; // 发货金额

    public DeliveryGoodsBean() {
    }

    public DeliveryGoodsBean(String goodsName, String goodsCode, String spec, 
                             double unitPrice, int deliveryQuantity) {
        this.goodsName = goodsName;
        this.goodsCode = goodsCode;
        this.spec = spec;
        this.unitPrice = unitPrice;
        this.deliveryQuantity = deliveryQuantity;
        this.deliveryAmount = unitPrice * deliveryQuantity;
    }

    public String getGoodsName() {
        return goodsName;
    }

    public void setGoodsName(String goodsName) {
        this.goodsName = goodsName;
    }

    public String getGoodsCode() {
        return goodsCode;
    }

    public void setGoodsCode(String goodsCode) {
        this.goodsCode = goodsCode;
    }

    public String getSpec() {
        return spec;
    }

    public void setSpec(String spec) {
        this.spec = spec;
    }

    public double getUnitPrice() {
        return unitPrice;
    }

    public void setUnitPrice(double unitPrice) {
        this.unitPrice = unitPrice;
    }

    public int getDeliveryQuantity() {
        return deliveryQuantity;
    }

    public void setDeliveryQuantity(int deliveryQuantity) {
        this.deliveryQuantity = deliveryQuantity;
    }

    public double getDeliveryAmount() {
        return deliveryAmount;
    }

    public void setDeliveryAmount(double deliveryAmount) {
        this.deliveryAmount = deliveryAmount;
    }
}

